package cn.fbs.dao.dm;

import cn.fbs.model.dm.UserGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserGroupMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserGroup record);

    int insertSelective(UserGroup record);

    UserGroup selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserGroup record);

    int updateByPrimaryKey(UserGroup record);

    List<String> getTargetByUserId(@Param("userId") Long userId);

    Long selectGroupIdbyUserId(Long userId);

    UserGroup selectByUserId(Long userId);

    List<UserGroup> countMyGroupUser(Long userId);

    List<UserGroup> getOtherExpert(Long expertId);

    List<String> getTargetByGroupId(Long groupId);

    void deleteByUserId(Long userId);
}